package com.easy.core.dbHandle.entity;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 描述：基础POJO抽象类
 * @package com.easy.core.dbHandle.entity
 * @class BaseEntity
 */
public class BaseEntity extends Logger{
	
	private static final long serialVersionUID = 1L;
	
	public BaseEntity() {}
	
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}

	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
